package com.zhiying.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.zhiying.domain.OS_Category;
import com.zhiying.page.PageInfo;

public interface CategoryService {

		//查询分类总数
		int SelectCount(@Param("parentId")int parentId,@Param("search")String search);
		//显示第二级分类
		List<OS_Category> SelectinfoTwo(@Param("pageInfo")PageInfo pageInfo, @Param("search")String search,@Param("parentId")int parentId);
		//更改分类状态
		int UpdateStatus(@Param("Category")OS_Category Category);
		//根据id查询分类状态
		int SelectStatusByid(@Param("CategoryId")int CategoryId);
		//根据id查询改分类下面有没有子分类
		int CountInfoByid(@Param("CategoryId")int CategroyId);
		//根据id删除分类
		int DeleteinfoByid(@Param("CategoryId")int CategoryId);
		
}
